
using Core.Toolkit.Core.Entitys;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Core.SimpleTemp.Entitys
{
    /// <summary>
    /// 承包商
    /// </summary>
    public class CBS_List : Entity
    {
        /// <summary>
        /// 承包商代码
        /// </summary>
        [MaxLength(10)]
        public String ContractorCode { get; set; }
        /// <summary>
        /// 承包商名称
        /// </summary>
        [MaxLength(200)]
        public String ContractorName { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public String Arrdess { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(15)]
        public String phone { get; set; }
        /// <summary>
        /// 主要施工类别
        /// </summary>
        public String ConstructionCategory { get; set; }
        /// <summary>
        /// 其他施工类别
        /// </summary>
        /// [MaxLength(400)]
        public String OtherConstructionCategory { get; set; }
        /// <summary>
        /// 资质名称
        /// </summary>
        [MaxLength(200)]
        public String QualificationName { get; set; }
        /// <summary>
        /// 资质等级
        /// </summary>
        [MaxLength(20)]
        public String QualificationLevel { get; set; }
        /// <summary>
        /// 技术人员情况
        /// </summary>
        [MaxLength(500)]
        public String TechnicalStaffSituation { get; set; }
        /// <summary>
        /// 主要业绩
        /// </summary>
        [MaxLength(500)]
        public String MainaAchievement { get; set; }
        /// <summary>
        /// 状态(合格/不合格)
        /// </summary>
        public String status { get; set; }

        /// <summary>
        /// 是否黑名单
        /// </summary>
        public Boolean IsBack { get; set; }

        /// <summary>
        /// 隶属工厂
        /// </summary>
        public Guid? CreateFactory { get; set; }

        /// <summary>
        /// 主管部门
        /// </summary>
        public Guid? ManageDept { get; set; }

        /// <summary>
        /// 创建部门
        /// </summary>
        public Guid? CreateDept { get; set; }
        /// <summary>
        /// 更改部门
        /// </summary>
        public Guid? UpdateDept { get; set; }

        /// <summary>
        /// 负责人姓名
        /// </summary>
        [MaxLength(50)]
        public String PrincipalName { get; set; }
        /// <summary>
        /// 负责人年龄
        /// </summary>
        public int? Age { get; set; }
        /// <summary>
        /// 负责人身份证号
        /// </summary>
        [MaxLength(18)]
        public String IDNumber { get; set; }

        /// <summary>
        /// 负责人联系电话
        /// </summary>
        [MaxLength(20)]
        public String PrincipalPhone { get; set; }

        public SysDepartment SysDepartment { get; set; }

        public virtual ICollection<CBS_ListAttachment> CBS_ListAttachments { get; set; }
    }
}
